import { getToken } from '@/utils/auth'
export default {
  data() {
    return {
      page: {
        start: 0,
        limit: 10,
        total: 0,
        pageSize: [10, 20, 30, 40]
      },
      uploadUrl: '/lejuAdmin/material/uploadFileOss',
      uploadHeaders: {
        token: getToken()
      }
    }
  },
  methods: {
    // 删除获取信息中的空数据
    removeBlock(data) {
      const obj = {}
      for (const key in data) {
        if (data[key] !== '') {
          obj[key] = data[key]
        }
      }
      return obj
    }
  }
}
